package com.zycfc.zsf.boot.mq.rabbitmq.consumer;

import org.springframework.core.env.*;
import org.springframework.beans.factory.annotation.*;
import com.zycfc.zsf.boot.mq.common.*;
import javax.annotation.*;
import org.slf4j.*;

public class AbstractConsumerConfiguration
{
    private static final Logger log;
    @Value("${zsf.all.namespace:dev}")
    private String namespace;
    @Autowired
    private Environment env;
    
    @PostConstruct
    public void init() {
        final String applicationName = this.env.getProperty("spring.application.name");
        MqEnvConstants.build(this.namespace, applicationName);
    }
    
    public String getNamespace() {
        return this.namespace;
    }
    
    static {
        log = LoggerFactory.getLogger((Class)AbstractConsumerConfiguration.class);
    }
}
